package com.wang.controller.admin;

import com.wang.service.PayInfoService;
import com.wang.utils.ResponseUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Classname AdminPayController
 * @Description TODO
 * @Date 2024/9/19 13:52
 * @Created by pc
 */
@RestController
@RequestMapping("/admin/pay")
@Api(value = "后台支付接口",tags = "AdminPayController")
public class AdminPayController {

    @Resource
    private PayInfoService payInfoService;

    @GetMapping("/findAll")
    @ApiOperation(value = "获取所有支付信息",notes = "后台获取所有用户的支付信息")
    public ResponseUtil findAll(){
        return payInfoService.findAll();
    }
}
